import { CourseStatus, LessonCourseType } from '@/enums/course'

export const LessonCourseTypeMapping: Record<LessonCourseType, string> = {
  [LessonCourseType.ALL]: '全部类型',
  [LessonCourseType.EXPERIENCE]: '体验课',
  [LessonCourseType.TRAINING]: '陪练课',
  [LessonCourseType.REVIEW]: '复习课',
}

export function getCourseTypeName(type: LessonCourseType): string {
  return LessonCourseTypeMapping[type]
}

export const CourseStatusMapping: Record<CourseStatus, string> = {
  [CourseStatus.NOT_ACTIVATED]: '未激活',
  [CourseStatus.ACTIVATED]: '已激活',
  [CourseStatus.ACTIVATED_EXPIRED]: '激活已过期',
  [CourseStatus.NOT_ACTIVATED_EXPIRED]: '未激活已过期',
  [CourseStatus.CANCEL_ACTIVATED]: '取消激活',
}

export function getCourseStatusName(status: CourseStatus): string {
  return CourseStatusMapping[status]
}
